package com.whale.kernel.service;

import javax.servlet.ServletContext;

import com.whale.kernel.domain.HtmlPage;
import com.whale.kernel.model.pagination.PagedList;
import com.whale.kernel.model.pagination.Step;

public interface HtmlPageService {

	HtmlPage findHtmlPage(String path, String pageId);

	PagedList<HtmlPage> findHtmlPages(String path, Step step);

	/**
	 * 
	 * @return list of all children pages for all sub-menu under specified path
	 *         top level menu.
	 */
	PagedList<HtmlPage> findSubMenuPagesUnderTopMenu(String topMenuPath, Step step);

	void reInitilizeHtmlPages(ServletContext ctx);
}
